package com.multiple.datasource.service.impl.back;

import com.multiple.datasource.dao.back.RoleMapper;
import com.multiple.datasource.entity.back.Role;
import com.multiple.datasource.service.back.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    RoleMapper roleMapper;

    @Override
    public Role getRoleById(Integer id){
        return roleMapper.selectByPrimaryKey(id);
    }
}
